Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return static from fluid setters #236

Merged
merged 3 commits into from
Nov 5, 2024

Conversation

kimpepper
Copy link
Contributor

Description

In #233 we are proposing to provide an interface for common fluid setters, how the specific return type that is generated for the fluid setters prevents this.

PHP 8.0 introduced static as a return type to solve this problem by using late static binding. See https://wiki.php.net/rfc/static_return_type

Issues Resolved

Allows re-use of common fluid setters.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@dblock
Copy link
Member

dblock commented Nov 4, 2024

Looks like a bunch of generated code is being updated. PR only the non-generated code changes and let the cron pickup the generated ones?

Signed-off-by: Kim Pepper <[email protected]>
@kimpepper
Copy link
Contributor Author

Done ✔️

shyim
shyim previously approved these changes Nov 5, 2024
Signed-off-by: Shyim <[email protected]>
@shyim shyim merged commit add2d03 into opensearch-project:main Nov 5, 2024
53 checks passed
@shyim
Copy link
Collaborator

shyim commented Nov 5, 2024

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants